]> dgit.raspbian.org Git - ostree.git/commit
ostree-blob-reader: Add error handling for invalid base64 blobs
authorPhilip Withnall <pwithnall@gnome.org>
Mon, 3 Aug 2026 15:30:28 +0000 (16:30 +0100)
committerPhilip Withnall <pwithnall@gnome.org>
Tue, 4 Aug 2026 12:10:00 +0000 (13:10 +0100)
commit82d76f002a55163527cefcd8e7e964fa3cc62e7a
treed42f3d1751faebb278dd40fda2f4850d648d6972
parentae08c555201ec382ed8ae4fc118e7a714cbb32bb
ostree-blob-reader: Add error handling for invalid base64 blobs

One cannot base64 decode the empty string, so catch that case (which can
happen if asked to load a malformed key file) early before it causes an
assertion failure inside GLib.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
src/libostree/ostree-blob-reader-base64.c